import request from "@/utils/request";

// 查询发票排版列表
export function listInvoiceClass(query) {
  return request({
    url: "/business/invoiceClass/list",
    method: "get",
    params: query,
  });
}

// 查询发票排版所有列表
export function listAllInvoiceClass(query) {
  return request({
    url: "/business/invoiceClass/listAll",
    method: "get",
    params: query,
  });
}

// 查询发票排版详细
export function getInvoiceClass(id) {
  return request({
    url: "/business/invoiceClass/getInfo/" + id,
    method: "get",
  });
}

// 新增发票排版
export function addInvoiceClass(data) {
  return request({
    url: "/business/invoiceClass/exportClass",
    method: "post",
    data: data,
  });
}

// 修改发票排版
export function updateInvoiceClass(data) {
  return request({
    url: "/business/invoiceClass/edit",
    method: "post",
    data: data,
  });
}

// 删除发票排版
export function delInvoiceClass(id) {
  return request({
    url: "/business/invoiceClass/remove/" + id,
    method: "get",
  });
}

// 打印发票排版
export function exportInvoiceClass(data) {
  return request({
    url: "business/invoiceClass/exportClass",
    method: "post",
    data: data,
  });
}
